//
//  OCACoder.h
//  OCAFramework
//
//  Created by Wu Yanna on 12-4-18.
//  Copyright (c) 2012年 DP. All rights reserved.
//
// abstract coder class

#import <Foundation/Foundation.h>

@interface OCACoder : NSObject

- (id)decodeObjectForKey:(NSString *)key;
- (BOOL)decodeBoolForKey:(NSString *)key;
- (int)decodeIntForKey:(NSString *)key;
- (int32_t)decodeInt32ForKey:(NSString *)key;
- (int64_t)decodeInt64ForKey:(NSString *)key;
- (float)decodeFloatForKey:(NSString *)key;
- (double)decodeDoubleForKey:(NSString *)key;
// 如何与decodeObject合并
- (id)decodeCustomObjectOfClass:(Class)class forKey:(NSString *)key;
- (id)decodeArrayOfClass:(Class)class forKey:(NSString *)key;
- (id)decodeObject;
- (id)decodeCustomObjectOfClass:(Class)c;
- (id)decodeArrayOfClass:(Class)c;
@end
